/*
 * answer.hpp
 *
 *  Created on: 19-05-2013
 *      Author: Kopik
 */

#ifndef ANSWER_HPP_
#define ANSWER_HPP_

#include <QObject>
#include <QString>

class Answer : public QObject
{
	Q_OBJECT

	Q_PROPERTY(int answerID READ answerID)
	Q_PROPERTY(QString text READ text WRITE setText)
	Q_PROPERTY(bool valid READ valid WRITE setValid)

public:
	Answer(const int id, const QString &text, const bool valid, QObject *parent = 0);

	int answerID() const;
	QString text() const;
	bool valid() const;

	void setText(const QString &newText);
	void setValid(const bool newValid);

private:
	int m_id;
	QString m_text;
	bool m_valid;
};



#endif /* ANSWER_HPP_ */
